﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="position_type_edit.aspx.cs" Inherits="EDP.Application.Web.Organization.position_type_edit" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <style type="text/css">
        .x-column-header {
            text-align: center;
        }
    </style>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager" AutoSizePanelID="panel_main" runat="server" />
        <f:Panel ID="panel_main" Margin="0" BodyPadding="0" runat="server" ShowBorder="false" ShowHeader="false" AutoScroll="true" Layout="Region">
            <Items>
                <f:SimpleForm ID="form_content" runat="server" ShowBorder="false" ShowHeader="false" BodyPadding="10"
                    AutoScroll="false" Margin="0" LabelAlign="Right" LabelWidth="60" RegionPosition="Left" Width="460" Layout="Column">
                    <Items>
                        <f:TextBox ID="tb_name" runat="server" Label="职类名称" BindName="Name" Margin="0" ColumnWidth="50%" ShowRedStar="true" />
                        <f:TextBox ID="tb_Label" runat="server" Label="职类标记" BindName="Label" Margin="0 0 0 10" ColumnWidth="50%" ShowRedStar="true"
                            AutoPostBack="true" OnTextChanged="tb_Label_TextChanged" RegexPattern="ALPHA" RegexMessage="请输入英文字符" EmptyText="英文字符" />

                        <f:NumberBox ID="tb_LevelsUpper" runat="server" Label="职级上限" BindName="LevelsUpper" Margin="10 0 0 0" ColumnWidth="50%"
                            NoDecimal="true" NoNegative="true" MinValue="0" MaxValue="999" MaxLength="3" ShowRedStar="true"
                            AutoPostBack="true" OnTextChanged="tb_LevelsUpper_TextChanged" />
                        <f:NumberBox ID="tb_LevelsLower" runat="server" Label="职级下限" BindName="LevelsLower" Margin="10 0 0 10" ColumnWidth="50%"
                            NoDecimal="true" NoNegative="true" MinValue="0" MaxValue="999" MaxLength="3" ShowRedStar="true"
                            AutoPostBack="true" OnTextChanged="tb_LevelsLower_TextChanged" />

                        <f:TextBox ID="tb_createUser" runat="server" Label="创建人" BindName="CreateUserName" Margin="10 0 0 0" ColumnWidth="50%" Readonly="true" />
                        <f:TextBox ID="tb_craeteTime" runat="server" Label="创建时间" BindName="CreateTimeDisplay" Margin="10 0 0 10" ColumnWidth="50%" Readonly="true" />
                        <f:TextBox ID="tb_modifyUser" runat="server" Label="修改人" BindName="ModifyUserName" Margin="10 0 0 0" ColumnWidth="50%" Readonly="true" />
                        <f:TextBox ID="tb_modifyTime" runat="server" Label="修改时间" BindName="ModifyTimeDisplay" Margin="10 0 0 10" ColumnWidth="50%" Readonly="true" />
                        <f:TextArea ID="tb_remark" runat="server" Label="描述" BindName="Remarks" Margin="10 0 0 0" ColumnWidth="100%" Height="267" />
                    </Items>
                </f:SimpleForm>
                <f:Grid ID="grid_List" runat="server" Title="职级列表" ShowHeader="false" RegionPosition="Center" Margin="10 10 0 0" EnableCheckBoxSelect="false"
                    DataKeyNames="ID,Label,Levels" AllowSorting="false" AllowPaging="false">
                    <Columns>
                        <f:BoundField ColumnID="col_Name" DataField="Name" ExpandUnusedSpace="true" HeaderText="职级" />
                    </Columns>
                </f:Grid>
            </Items>
            <Toolbars>
                <f:Toolbar runat="server" Position="Bottom" ToolbarAlign="Right">
                    <Items>
                        <f:Button ID="btn_save" runat="server" Text=" 保 存 " Icon="Disk" Margin="0 10 0 0" OnClick="btn_save_Click" />
                        <f:Button ID="btn_close" runat="server" Text=" 关 闭 " Icon="Cross" Margin="0 10 0 0" EnablePostBack="false" EnablePermission="false" />
                    </Items>
                </f:Toolbar>
            </Toolbars>
        </f:Panel>
    </form>
</body>
</html>
